package com.dqhl.community.model;

import com.dqhl.community.base.BaseModel;

import java.io.Serializable;
import java.util.ArrayList;

/**
 * Created by cheng on 2016/9/11.
 * 订单记录
 */
public class OrderRecord extends BaseModel implements Serializable{

    private String id;
    private String name;
    private String total;
    private String address;
    private int number;
    private ArrayList<Good> goods;
    private String status;
    private String goods_evaluate;
    private String price;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getTotal() {
        return total;
    }

    public void setTotal(String total) {
        this.total = total;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public ArrayList<Good> getGoods() {
        return goods;
    }

    public void setGoods(ArrayList<Good> goods) {
        this.goods = goods;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getGoods_evaluate() {
        return goods_evaluate;
    }

    public void setGoods_evaluate(String goods_evaluate) {
        this.goods_evaluate = goods_evaluate;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "OrderRecord{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", total='" + total + '\'' +
                ", address='" + address + '\'' +
                ", number=" + number +
                ", goods=" + goods +
                ", status='" + status + '\'' +
                ", goods_evaluate='" + goods_evaluate + '\'' +
                ", price='" + price + '\'' +
                '}';
    }

    public class Good implements Serializable{
        private String name;
        private String goods_pic;
        private String goods_id;
        private String price_one;
        private String number;
        private int goods_evaluate;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getGoods_pic() {
            return goods_pic;
        }

        public void setGoods_pic(String goods_pic) {
            this.goods_pic = goods_pic;
        }

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getPrice_one() {
            return price_one;
        }

        public void setPrice_one(String price_one) {
            this.price_one = price_one;
        }

        public String getNumber() {
            return number;
        }

        public void setNumber(String number) {
            this.number = number;
        }

        public int getGoods_evaluate() {
            return goods_evaluate;
        }

        public void setGoods_evaluate(int goods_evaluate) {
            this.goods_evaluate = goods_evaluate;
        }

        @Override
        public String toString() {
            return "Good{" +
                    "name='" + name + '\'' +
                    ", goods_pic='" + goods_pic + '\'' +
                    ", goods_id='" + goods_id + '\'' +
                    ", price_one='" + price_one + '\'' +
                    ", number='" + number + '\'' +
                    ", goods_evaluate=" + goods_evaluate +
                    '}';
        }
    }
}
